.#{$spin-prefix-cls} {
  color: $primary-color;
  text-align: center;
  vertical-align: middle;

  &-dot {
    @include square($spin-dot-size);
    animation: ani-spin-bounce 1s 0s ease-in-out infinite;
    background-color: $primary-color;
    border-radius: 50%;
    display: block;
    position: relative;
  }

  &-large &-dot {
    @include square($spin-dot-size-large);
  }

  &-small &-dot {
    @include square($spin-dot-size-small);
  }

  &-fix {
    @include square(100%);
    background-color: rgba(255, 255, 255, 0.9);
    left: 0;
    position: absolute;
    top: 0;
    z-index: $zindex-spin;
  }

  &-fullscreen {
    z-index: $zindex-spin-fullscreen;

    &-wrapper {
      bottom: 0;
      left: 0;
      position: fixed;
      right: 0;
      top: 0;
    }
  }

  &-fix &-main {
    left: 50%;
    position: absolute;
    top: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
  }

  &-fix &-dot {
    display: inline-block;
  }

  &-text,
  &-show-text &-dot {
    display: initial;
  }

  &-show-text &-text {
    display: block;
  }
}

.#{$table-prefix-cls}-wrapper {
  > .#{$spin-prefix-cls}-fix {
    border: 0;
  }
}
.#{$table-prefix-cls}-wrapper-with-border {
  > .#{$spin-prefix-cls}-fix {
    border: 1px solid $border-color-base;
    border-left: 0;
    border-top: 0;
  }
}

@keyframes ani-spin-bounce {
  0% {
    transform: scale(0);
  }

  100% {
    opacity: 0;
    transform: scale(1);
  }
}
